<?php
/*
	Rss-aggregator php script : Aggregate rss feeds to display it as needed
	Visit http://www.rss-aggregator.com for more help.
	Copyright (C) 2008 DAHU.FR

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

	@$connexion = mysql_connect (SERVER_BD, LOGIN_BD, PASS_BD);
	if (!$connexion)
	{
		echo "<br/> Sorry, connection to '" . SERVER_BD . "' server is impossible <br/> \n";
		exit();
	}
	else
	{
		if (!mysql_select_db(NAME_BD))
		{
			echo "<br/> Sorry, access to the '" . NAME_BD . "' data base is impossible<br/> \n";
			exit();
		}
		// Spécifie l'encodage UTF-8 pour dialoguer avec la BD
		mysql_query("SET NAMES utf8");
	}
?>